a = int(input())
b = int(input())

if a > b:
    print(a**2)
else:
    print(b**2)
